/*
 * @(#)RestaurantBO.java $version 2011. 5. 19.
 *
 */

package org.doit.android.bobple.server.bo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.doit.android.bobple.server.dao.RestaurantDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author Choi HongKi
 */
@Service
public class RestaurantBO {

	@Autowired
	private RestaurantDAO RestaurantDAO;

	public List<Map<String, Object>> getRestaurant(String userId, int pageNumber, int pageSize) {
		Map<String, Object> paramMap = new HashMap<String, Object>();
		paramMap.put("user_id", userId);
		paramMap.put("page_num", pageNumber);
		paramMap.put("page_size", pageSize);

		return RestaurantDAO.selectRestaurant(paramMap);
	}

	public List<Map<String, Object>> getRestaurantNear(int mapX, int mapY) {
		return null;
	}

}
